-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
use same route for login_path and check_path #6143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use same route for login_path and check_path #6143
Conversation
snoek09
commented
Jan 13, 2016
Q | A |
---|---|
Doc fix? | yes |
New docs? | no |
Applies to | all |
Fixed tickets | #6126 |
I think we should be more consistent throughout the documentation. Sometimes we use routes in the security configuration, sometimes we use paths. And then we should also always use the same route name for the login path route imo. |
👍 |
👍 for @xabbuh comment as hardcoded paths mess with |
@snoek09 Why did you close here? |
@xabbuh please let me know if this OK or not. |
@@ -472,14 +449,14 @@ for the login page: | |||
), | |||
), | |||
|
|||
3. Be Sure /login_check Is Behind a Firewall | |||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |||
3. Be Sure check_path Is Behind a Firewall |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ough, this will be hard to learn to new users: /login
has to be not secured, but behind a firewall... However, I think we cannot do anything about it.
👍 (my las tcomment can be fixed while merging) |
Thank you @xabbuh. |
This rocks my socks - thanks @snoek09! |
This PR was merged into the master branch. Discussion ---------- Use same URL for login form and check The Security Form login listener will only intercept the request when it's a POST request, otherwise the controller will be executed. Using the same URL makes things a bit easier, removes the need for the weird controller (which is visited, but should not be executed) and makes things similar to other forms. Related doc tickets: * symfony/symfony-docs#6126 * symfony/symfony-docs#6143 Commits ------- b7705cb Use same URL for login form and check
This PR was merged into the master branch. Discussion ---------- Use same URL for login form and check The Security Form login listener will only intercept the request when it's a POST request, otherwise the controller will be executed. Using the same URL makes things a bit easier, removes the need for the weird controller (which is visited, but should not be executed) and makes things similar to other forms. Related doc tickets: * symfony/symfony-docs#6126 * symfony/symfony-docs#6143 Commits ------- b7705cb Use same URL for login form and check
This PR was merged into the master branch. Discussion ---------- Use same URL for login form and check The Security Form login listener will only intercept the request when it's a POST request, otherwise the controller will be executed. Using the same URL makes things a bit easier, removes the need for the weird controller (which is visited, but should not be executed) and makes things similar to other forms. Related doc tickets: * symfony/symfony-docs#6126 * symfony/symfony-docs#6143 Commits ------- b7705cb Use same URL for login form and check
This PR was merged into the master branch. Discussion ---------- Use same URL for login form and check The Security Form login listener will only intercept the request when it's a POST request, otherwise the controller will be executed. Using the same URL makes things a bit easier, removes the need for the weird controller (which is visited, but should not be executed) and makes things similar to other forms. Related doc tickets: * symfony/symfony-docs#6126 * symfony/symfony-docs#6143 Commits ------- b7705cb Use same URL for login form and check